import {
  CoolController,
  BaseController,
  CoolUrlTag,
  CoolTag,
  TagTypes,
} from '@cool-midway/core';
import { ALL, Post, Body } from '@midwayjs/decorator';

@CoolUrlTag()
@CoolController()
export class BizCommonBaseController extends BaseController {
  @CoolTag(TagTypes.IGNORE_TOKEN)
  @Post('/notify', { summary: '微信支付 通知商户url地址' })
  async notify(@Body(ALL) params: any) {
    console.log('通知商户url地址', params);
    console.log('通知商户url地址', JSON.stringify(params));
    return this.ok(null);
  }
}
